#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<assert.h>
void* my_memset(void* dest,int num,size_t count)
{
	void* ret = dest;
	assert(dest != NULL);
	while(count--)
	{
		*(char*)dest = (char)num;
		dest = (char*)dest + 1;
	}
	return ret;
}
int main()
{
	int arr[] = {1,2,3,4,5,6,7,8,9,10};
	my_memset(arr,0,20);
	return 0;
}